//  MyDocument.h
//  WorkTimer
//
//  Created by Gerhard Sletten on 06.01.06.
//  Copyright __MyCompanyName__ 2006 . All rights reserved.

#import <Cocoa/Cocoa.h>
#import "timeUtility.h"
#import "WTRecord.h"
#import "MyDocumentController.h"

@interface WTDocument : NSPersistentDocument {
	WTRecord *recordingSlide;
	NSTimer  *time;
	
	IBOutlet id arrayController;
	IBOutlet id timeTextField;
	IBOutlet id titleTextField;
	
	IBOutlet id startButton;
	IBOutlet id stopButton;
	
	IBOutlet id editSheet;
	IBOutlet id mainWindow;
	
	IBOutlet id tableView;
}

- (IBAction)saveDocument:(id)sender;

- (IBAction) StartRecording:(id)sender;
- (IBAction) StopRecording:(id)sender;

- (void) recordTimer:(NSTimer *)timer;
- (void) timerStop;

- (void) copy:(id)sender;
- (void) paste:(id)sender;
- (void) cut:(id)sender;

- (IBAction) startEditSheet:(id)sender;
- (IBAction) endEditSheet:(id)sender;
- (IBAction) toggleWindow:(id)sender;
- (void) updateGUI;

//- (BOOL) readDocumentFromURL:(NSURL *)url;
//- (void)windowWillClose:(NSNotification *)aNotification;

@end
